package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.Result;
import com.itheima.pojo.ShoppingCart;
import org.springframework.transaction.annotation.Transactional;

public interface ShoppingCartService extends IService<ShoppingCart> {
    @Transactional
    Result add(ShoppingCart shoppingCart);


    Result delete();

    @Transactional
    Result deleteById(ShoppingCart shoppingCart);

    Result listAll();
}
